import axios from 'axios'

let context = '/settingservice'
/***
 * 新增版本
 */
export function addVersion(data: any) {
  return axios.post(`${context}/systems/version`, data)
}

export function addVersionByFile(data: any) {
  return axios.post(`${context}/systems/version/file`, data)
}

/***
 * 获取版本分页列表
 */
export function getVersionData(data: any) {
  return axios.get(`${context}/systems/version/pagination`, {
    params: data,
  })
}

/***
 * 删除版本
 */
export function batchRemoveVersion(data: any) {
  return axios.post(`${context}/systems/version/batchRemove`, data)
}
